﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.DataAccess.BO
{
    [DBTable("TS_User")]
    public class UserInfo
    {
        [DBPrimaryKeyColumn("AID")]
        public int AID { get; set; }

        [DBColumn("UserName")]
        public string UserName { get; set; }

        [DBColumn("Name")]
        public string Name { get; set; }

        /// <summary>
        /// Note, password cannot be updated implicitly
        /// </summary>
        [DBColumn("Password", false, true)]
        [DBDateTime("Password", DateTimeType.Date, true, true)]
        public string Password { get; set; }

        /// <summary>
        /// CreateUserID cannot be updated implicitly
        /// </summary>
        [DBColumn("CreateUserID", false, true)]
        public int CreateUserID { get; set; }

        [DBColumn("Version", false, false)]
        public string Version { get; set; }

    }
}
